package cate.common.table.item.rune.sheet;

import cate.common.table.ESheet;
import cate.common.table.item.rune.row.RuneLevelUpRow;

public class RuneLevelUpSheet extends ESheet<RuneLevelUpRow> {
    @Override
    public String getSheetName() {
        return "徽章新强化";
    }

    public int calcExp(int level) {
        int exp = 0;
        for (int i=1; i<=level; ++i) {
            RuneLevelUpRow row = get(i);
            if (row != null) {
                exp += row.exp;
            }
        }
        return exp;
    }
}
